package com.zer0.tga.math;


// a rectangular area which is defined by 
// its starting point x0,y0 and its ending point x1,y1
//
//            y0
//           _ _ _
//          |     |
//       x0 |     | x1
//          |     |
//           _ _ _  
//            y1
//


public class Box {
	
	public double x0;

	public double y0;
	
	public double x1;
	
	public double y1;
	
	
	public Box(double x0, double y0, double x1, double y1)
	{
		this.x0 = x0;
		this.y0 = y0;
		
		this.x1 = x1;
		this.y1 = y1;
		
	}
	
	public Box(int x0, int y0, int x1, int y1)
	{
		this.x0 = x0;
		this.y0 = y0;
		
		this.x1 = x1;
		this.y1 = y1;
		
	}
	
	
	
	public Box(Coordinate c0, Coordinate c1)
	{
		this.x0 = c0.x;
		this.y0 = c0.y;
		
		this.x1 = c1.x;
		this.y1 = c1.y;	
	}

}
